package com.example.cinema.bindingdata;

import android.content.Context;
import android.database.Observable;
import android.view.View;
import android.widget.GridView;
import android.widget.ImageView;

import androidx.databinding.BindingAdapter;
import androidx.databinding.ObservableArrayList;
import androidx.databinding.ObservableField;
import androidx.databinding.ObservableList;

import com.bumptech.glide.Glide;
import com.example.cinema.BR;
import com.example.cinema.R;
import com.example.cinema.adapter.CommentAdapter;
import com.example.cinema.drawview.RoundImageStork;

import java.util.List;

//用户头像点击跳转页数据
public class UserVideoInfoData {
    //图片显示
    @BindingAdapter("userimage")
    public static void usinfoimg(View view,String url)
    {
        if (url!=null)
        {
            Glide.with(view).load(url).into((ImageView) view);
        }
    }

    //用户昵称
    public ObservableField<String> userterm = new ObservableField<String>();
    //用户SID
    public ObservableField<String> usersid = new ObservableField<String>();
    //用户头像
    public ObservableField<String> userimg = new ObservableField<>();
    //粉丝数
    public ObservableField<String> userfans = new ObservableField<>();
    //作品数量
    public ObservableField<String> worksnum = new ObservableField<>();
    //我的关注
    public ObservableField<String> follow = new ObservableField<>();
}
